package com.atguigu.userprofile.util;

import javafx.scene.chart.BubbleChart;

import java.io.FileInputStream;
import java.io.InputStream;
import java.util.Properties;
import java.util.ResourceBundle;

/**
 * 配置解析类
 */
public class MyPropsUtil {

    public static void main(String[] args) {

        //FileInputStream in = new FileInputStream("");
        //InputStream in = ClassLoader.class.getResourceAsStream();
        //Properties properties = new Properties();
        //properties.load(in);

        String s = get("mysql.url");
        System.out.println(s);

    }

    private static ResourceBundle bundle = ResourceBundle.getBundle("config");

    public static String get(String key ){
        String v = bundle.getString(key);
        return v;
    }



}
